<?php
namespace BP\GPM;
require_once("BP/En/Map.php");
class GroupStation extends EntityMM {
	public function getFK_Station () 
	{
		return $this->GetValStringByKey(GroupStationAttr::$FK_Station);
	}
	public function setFK_Station ($value) // [String value]
	{
		$this->SetValByKey(GroupStationAttr::$FK_Station, $value);
	}
	public function getFK_Group () 
	{
		return $this->GetValStringByKey(GroupStationAttr::$FK_Group);
	}
	public function setFK_Group ($value) // [String value]
	{
		$this->SetValByKey(GroupStationAttr::$FK_Group, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($no) // [String no]
	{
		$me = new self();
		$me->Retrieve();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("GPM_GroupStation");
		$map->setDepositaryOfEntity($Depositary->None);
		$map->setDepositaryOfMap($Depositary->Application);
		$map->setEnDesc("权限组岗�?");
		$map->setEnType($EnType->Sys);
		$map->AddTBStringPK(GroupStationAttr::$FK_Group, NULL, "权限�?",  FALSE ,  FALSE , 0, 50, 20);
		$map->AddDDLEntitiesPK(GroupStationAttr::$FK_Station, NULL, "岗位", Stations::constructor__(),  TRUE );
		$this->set_enMap($map);
		return $this->get_enMap();
	}
}
?>
